<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>创建问卷</title>
    <style>
        .container { width: 600px; margin: 50px auto; }
        .form-group { margin-bottom: 15px; }
        .form-group label { display: block; margin-bottom: 5px; }
        .form-group input, .form-group textarea, .form-group select { 
            width: 100%; 
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        .btn {
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <div class="container">
        <h2>创建新问卷</h2>
        <form action="${pageContext.request.contextPath}/survey/create" method="post">
            <div class="form-group">
                <label>问卷标题：</label>
                <input type="text" name="title" required>
            </div>
            <div class="form-group">
                <label>问卷说明：</label>
                <textarea name="description" rows="4"></textarea>
            </div>
            <div class="form-group">
                <label>状态：</label>
                <select name="status">
                    <option value="0">草稿</option>
                    <option value="1">发布</option>
                </select>
            </div>
            <button type="submit" class="btn">创建问卷</button>
        </form>
    </div>
</body>
</html>
